from pyweb.books.models import Book
from django.contrib import admin
from django.contrib.auth.models import User
from django.contrib.auth.models import Group
from django.contrib.sites.models import Site



class BookAdmin(admin.ModelAdmin):
    fields = ['name','author','publisher','pub_date', 'bookcover']
    list_display = ('name','author','publisher','pub_date', 'bookcover')

admin.site.register(Book,BookAdmin)


admin.site.unregister(User)
admin.site.unregister(Group)
admin.site.unregister(Site)